//
//  SLBaseWKWebView.h
//  ShopLeader
//
//  Created by 帅科 on 2020/5/25.
//  Copyright © 2020 ShopLeader. All rights reserved.
//

#import "DWKWebView.h"
#import "SLConfig.h"

NS_ASSUME_NONNULL_BEGIN
@class QSBaseWebView;

typedef void(^QSBaseWebViewDocumentStateBlock)(SLDocumentReadyStateType type);

// 将scripthandler事件回调给外部
typedef void(^SLSLBaseWebViewScriptHandlerBlock)(QSBaseWebView *wkWebView ,WKScriptMessage *scriptMessage);

@interface QSBaseWebView : DWKWebView

/// 网页DocumentReadyState
@property (nonatomic ,copy) QSBaseWebViewDocumentStateBlock webViewDocumentStateBlock;

/// 网页ScriptHandler事件回调
@property (nonatomic ,copy) SLSLBaseWebViewScriptHandlerBlock webViewScriptHandlerBlock;

@end
NS_ASSUME_NONNULL_END
